<template>
	<div>
		<button @click="getDate">点我获取接口数据</button>
	</div>
</template>

<script>
import axios from 'axios';


export default {
	name: 'App',
	methods: {
		getDate() {
			axios.get('http://localhost:3000/article/search')
				.then(
					response =>{
						console.log(response.data);
					},
					error =>{
						console.log(error.message);
					}
				)
		}
	},
}
</script>

